#!/bin/bash
#Created by Jin at 2018/09/18.

# 在原部署环境中为了在.bash_profile中引入phantomjs (2018/09/20) 
# . ~/.bash_profile    

source /etc/profile  
cd /home/jinzc/bd_spider

time=$(date "+%Y-%m-%d %H:%M:%S")
echo "hot_spider: start crawl 'hot_spider' -- ${time}" >> crawl.log
nohup scrapy crawl hot_spider --nolog 2>&1 &
echo "hot_spider: finished" >> crawl.log
